import React from 'react';

class Title extends React.Component {

    render() {
        let {pointerBg='range', title='当日数据', children=null} = this.props
        return (
            <div className="part-title">
                <div className="title-name">
                    <i className={`pointer ${pointerBg}`}> </i>
                    <span>{title}</span>
                </div>
                <div className="right-child-area">{children}</div>
            </div>
        )
    }
}

export default Title;